home *** CD-ROM | disk | FTP | other *** search
- Path: library.erc.clarkson.edu!rpi!not-for-mail
- From: Kyle.F.Downey@williams.edu (Kyle F. Downey)
- Newsgroups: comp.lang.c++,comp.lang.c++.moderated
- Subject: Dynamic class definitions in C++: possible?
- Date: 13 Apr 1996 13:09:03 -0000
- Organization: Williams College, Williamstown MA
- Sender: cppmods@netlab.cs.rpi.edu
- Approved: Dietmar.Kuehl@uni-konstanz.de
- Message-ID: <4ko91f$1cb@netlab.cs.rpi.edu>
- NNTP-Posting-Host: netlab.cs.rpi.edu
- X-Original-Date: 13 Apr 1996 08:58:32 -0400
-
- I want to know if the following has been done before (I am told it is
- possible in Java, but I am interested in doing it in C++):
-
- 1) load a C++ class definition from a file
- 2) convert it to an internal format
- 3) use the class just as you would a compiled class
-
- This would allow you to add a class at run-time based on a
- text/user-supplied definition. It seems to me that this would involve
- either run-time compiling and linking, or (if the loadable file
- were actually a compiled object file), implementing your own dynamic
- linking scheme. If the latter, can anyone refer me to useful books,
- articles, code libraries or Web pages on dynamic linking?
-
- If it would be possible to do this without compiled code, that would
- be much better, obviously. I have some ideas of how to implement an
- emulation of this behavior, but I wanted to check to see if anyone had
- walked/fallen on this road before first.
-
- Please email responses to 96kfd@williams.edu. Thanks in advance.
-
- regards,
- kd
-
- [ Articles to moderate: mailto:c++-submit@netlab.cs.rpi.edu ]
- [ Read the C++ FAQ: http://www.connobj.com/cpp/cppfaq.htm ]
- [ Moderation policy: http://www.connobj.com/cpp/guide.htm ]
- [ Comments? mailto:c++-request@netlab.cs.rpi.edu ]
-